<?php


namespace Plugin\AdCloak;


class Bootstrap
{
    public function boot()
    {
        //加入后台管理菜单
        add_hook_filter('admin.sidebar.setting.prefix', function ($data) {
            $data[] = 'ad_cloak';
            return $data;
        });

        add_hook_filter('admin.sidebar.setting_routes', function ($data) {
            $data[] = [
                'route' => 'ad_cloak',
                'prefixes' => ['ad_cloak'],
                'title' => '广告斗篷',
            ];

            return $data;
        });
    }


}
